﻿using Omabar.BLL;
using Omabar.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Omabar.CMS.Mobile
{
    public partial class RouteCategory : System.Web.UI.Page
    {
        protected List<THEME> themes;
        protected List<COUNTRY> countrys;
        protected List<ROUTE_COUNTRY> routeCountrys;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Theme_BLL themeBLL = new Theme_BLL();
                themes = themeBLL.GetModels("select THEME_ID,THEME_NAME,THEME_DES from THEME");
                if (themes == null) themes = new List<THEME>();


                CityBelong_BLL cityBelongBLL = new CityBelong_BLL();
                routeCountrys = cityBelongBLL.GetModels("select ROUTE_ID,ROUTE_CONTINENT,ROUTE_COUNTRY_NAME,ROUTE_CITY from ROUTE_COUNTRY");
                if (routeCountrys == null) routeCountrys = new List<ROUTE_COUNTRY>();

                Country_BLL countryBLL = new Country_BLL();
                countrys = countryBLL.GetModels("select COUNTRY_ID,COUNTRY_NAME,BELONG from COUNTRY WHERE BELONG='欧洲'");
                if (countrys == null) countrys = new List<COUNTRY>();
            }
        }
    }
}